CommandCopy Class Reference

#include <CommandCopy.h>

Inheritance diagram for CommandCopy:

Command List of all members.

Public Member Functions

 CommandCopy (OSGWindows *osgwind)
 CommandCopy (OSGWindows *osgwind, TraffEduObject *obj)
bool execute ()
bool unexecute ()

Private Attributes

OSGWindows * osgwind_
TraffEduObject * obj_
int rightCLK

Detailed Description

Definition at line 7 of file CommandCopy.h.


Constructor & Destructor Documentation

CommandCopy::CommandCopy (  OSGWindows *  osgwind  ) 
 

A constructor. Initializes osgwind_ and rightCLK variables. It is called if the copy operation is done from the menubar.

Parameters:
osgwind an OSGWindows pointer.

Definition at line 2 of file CommandCopy.cpp.

References osgwind, osgwind_, and rightCLK.

CommandCopy::CommandCopy (  OSGWindows *  osgwind,
TraffEduObject *  obj
) 
 

A constructor. Initializes osgwind_, obj_, and rightCLK variables. It is called if the copy operation is done from the menubar.

Parameters:
osgwind an OSGWindows pointer.
obj a TraffEduObject pointer.

Definition at line 8 of file CommandCopy.cpp.

References obj_, osgwind, osgwind_, and rightCLK.


Member Function Documentation

bool CommandCopy::execute (   )  [virtual]
 

do the copy operation.

Returns:
Operation success

Implements Command.

Definition at line 16 of file CommandCopy.cpp.

References OSGWindows::clearCopiedObjects(), obj_, osgwind_, rightCLK, and OSGWindows::setCopiedObjects().

Referenced by OSGWindows::addCommandCopy().

bool CommandCopy::unexecute (   )  [virtual]
 

undo the copy operation.

Returns:
Operation success

Implements Command.

Definition at line 28 of file CommandCopy.cpp.


Member Data Documentation

TraffEduObject* CommandCopy::obj_ [private]
 

a private variable. It is used to hold the copied object.

Definition at line 21 of file CommandCopy.h.

Referenced by CommandCopy(), and execute().

OSGWindows* CommandCopy::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.

Definition at line 15 of file CommandCopy.h.

Referenced by CommandCopy(), and execute().

int CommandCopy::rightCLK [private]
 

a private variable. It shows if the CommandCopy is called from the RightClickMenu or not.

Definition at line 27 of file CommandCopy.h.

Referenced by CommandCopy(), and execute().


The documentation for this class was generated from the following files:
Generated on Sun May 28 18:54:12 2006 for TraffEdu by  doxygen 1.4.6-NO